﻿using MediatR;
using PoemGame.Domain.GameAggregate.Events;

namespace PoemGame.Events.MediatR.Handler
{
    public class PlayerJoinGameEventLocalHandler : INotificationHandler<LocalEvent<PlayerJoinGameEventDataLocal>>
    {
        public Task Handle(LocalEvent<PlayerJoinGameEventDataLocal> notification, CancellationToken cancellationToken)
        {
            Console.WriteLine(notification.EventData.PlayerUserName+"Join"+ notification.EventData.GameDescription);
            return Task.CompletedTask;
        }
    }
}